#import "OmCommonField0.h"
@interface OmCommonField0 ()
@property (nonatomic, strong) UITextField *field;
@property (nonatomic, strong) UIView *line;
@end
@implementation OmCommonField0
- (instancetype)initWithPlaceHolder:(NSString *)placeHolder {
    self = [super init];
    if (self) {
        self.field.placeholder = placeHolder;
    }
    return self;
}
- (NSString *)text {
    return self.field.text;
}
- (void)configSelf {
    [self mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.equalTo(@(RPX(345)));
        make.height.equalTo(@(RPX(28)));
    }];
}
- (void)allocateComponents {
    self.field = [[UITextField alloc] init];
    [self.field setFont:RPXFont(15)];
    [self addSubview:self.field];
    self.line = [[UIView alloc] init].fp_backgroundColor(HexadecimalColor(@"#F07896"));
    [self addSubview:self.line];
}
- (void)layoutComponents {
    [self.field mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self);
        make.left.equalTo(self).offset(RPX(15));
        make.right.equalTo(self).offset(RPX(-15));
    }];
    [self.line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self);
        make.height.equalTo(@(1));
    }];
}
@end
